package io.gitee.caoxiaoyu97.messageconvert.client.customer;

import io.gitee.caoxiaoyu97.messageconvert.client.ext.CxyCloudAdapterConvertProcessor;
import io.gitee.caoxiaoyu97.messageconvert.common.CxyCloudTemplateMetadata;

import java.util.ArrayList;
import java.util.List;

/*********************************************************
 * 文件名称：CxyCloudAdapterCustomerMetadata.java
 * 系统名称：cxycloud
 * 模块名称：io.gitee.caoxiaoyu97.messageconvert.client.customer
 * 功能说明：适配器每一条客户端的配置对应client.xml内的customer
 * 开发人员 @author：caoxy
 * 开发时间 @date：2023/7/18 16:20
 * 修改记录：程序版本  修改日期  修改人员  修改单号  修改说明
 *********************************************************/
public class CxyCloudAdapterConvertMetadata extends CxyCloudTemplateMetadata {
    /**
     * 外部交易码=模板名称
     */
    private String outCode;
    /**
     * 外部的服务处理类名称
     */
    private String outServiceBeanName;
    /**
     * 是否mock
     */
    private boolean mock;

    private List<CxyCloudAdapterConvertProcessor> processorList = new ArrayList<>();

    public CxyCloudAdapterConvertMetadata(String outCode, String outServiceBeanName, boolean mock) {
        this.outCode = outCode;
        this.outServiceBeanName = outServiceBeanName;
        this.mock = mock;
    }

    public String getOutCode() {
        return outCode;
    }

    public void setOutCode(String outCode) {
        this.outCode = outCode;
    }

    public String getOutServiceBeanName() {
        return outServiceBeanName;
    }

    public void setOutServiceBeanName(String outServiceBeanName) {
        this.outServiceBeanName = outServiceBeanName;
    }

    public boolean isMock() {
        return mock;
    }

    public void setMock(boolean mock) {
        this.mock = mock;
    }

    public List<CxyCloudAdapterConvertProcessor> getProcessorList() {
        return processorList;
    }

    public void setProcessorList(
            List<CxyCloudAdapterConvertProcessor> processorList) {
        this.processorList = processorList;
    }
}
